package top.kaoshanji.p1ch08a;

/**
 * 代码清单-p1ch08a-170页a：继承时调用构造器
 * author kaoshanji
 * ^_^
 * create time 2025/3/9 15:39
 */
public class Cartoon extends Drawing {

    public Cartoon() {
        System.out.println("Cartoon constructor");
    }

    public static void main(String[] args) {
        new Cartoon();
    }

}

class Art {
    Art() {
        System.out.println("Art constructor");
    }
}

class Drawing extends Art {
    Drawing() {
        System.out.println("Drawing constructor");
    }
}
